package com.bawei.fuxi.ui.zhibo;

import android.widget.ImageView;

import com.bawei.fuxi.R;
import com.bawei.fuxi.base.mvp.BaseView;
import com.bawei.fuxi.base.utils.GlideUtils;
import com.bawei.fuxi.entity.GiftEntity;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import androidx.annotation.NonNull;

public class GiftAdapter extends BaseQuickAdapter<GiftEntity.DataBean, BaseViewHolder> {
    public GiftAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GiftEntity.DataBean dataBean) {
        ImageView imageView = baseViewHolder.getView(R.id.iv);
        GlideUtils.getInstance().loadImage(getContext(),dataBean.getGiftpath(),imageView);
    }
}
